package com.oozol.lieluyun.service;

import com.oozol.lieluyun.entity.BuildHistory;
import com.oozol.lieluyun.entity.BuildJob;
import com.oozol.lieluyun.entity.JobList;
import com.oozol.lieluyun.entity.UserEntity;
import com.surenpi.jenkins.client.Jenkins;
import java.util.List;

public interface IJenkinsService {
   Jenkins getJenkins() throws Exception;

   List<BuildHistory> buildHistory(String jobName) throws Exception;

   String buildHistoryLog(String jobName, Integer number) throws Exception;

   Integer buildJob(BuildJob buildJob) throws Exception;

   List<String> gitTags(String jobName) throws Exception;

   List<JobList> jobList() throws Exception;

   String jenkinsLogin(UserEntity userEntity) throws Exception;
}
